package com.ny.until;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.mongodb.repository.config.EnableMongoRepositories;

@SpringBootApplication
@EnableMongoRepositories(basePackages = "com.ny.repository")
@MapperScan("com.ny.mapper") // 添加这行来扫描MyBatis mapper
@ComponentScan(basePackages = {"com.ny.controller", "com.ny.service", "com.ny.repository", "com.ny.entity", "com.ny.util", "com.ny.until"})
public class NewIot57Application {

    public static void main(String[] args) {
        SpringApplication.run(NewIot57Application.class, args);
    }

}